<form action="<?php echo $this->escape($this->element->getAction()) ?>" method="<?php echo $this->escape($this->element->getMethod())?>" id="send_message_form"  enctype="multipart/form-data">
    <fieldset id="fieldset-newmessage">
        <?php echo $this->element->sender ?>
        <input type="hidden" id="newmessage-sender" value="" name="newmessage[sender]">
		<input type="hidden" id="newmessage-listing" value="<?php echo $this->listing->_id;?>" name="newmessage[listing]">
		<?php $internal_lng = $this->listing->getInternalLanguage(); ?>
		<?php if( $internal_lng == 'tc' && $this->listing->at == 1): ?>
			<div class="warn">
					<h3><?php echo $this->t('English Message Recommended');?></h3>
					<p><?php echo $this->t('This Ad was posted in English. We recommend sending your message in <em>English</em>.')?></p>
			</div>
		<?php endif; ?>

        <div class="email text">
            <label class="required" for="email"><?php echo $this->t('Email Address')?></label>
            <?php echo $this->element->email ?>
        </div>
        <div class="phone text">
            <label class="optional" for="newmessage-phone"><?php echo $this->t('Mobile:')?></label>
            <?php echo $this->element->phone ?>
        </div>
        <div class="message textarea">
            <label class="required" for="newmessage-message"><?php echo $this->t('Message')?></label>
            <?php echo $this->element->message ?>
            <span class="remark" id="text_counter"><?php echo $this->t('<em>3000</em> characters remaining')?></span>
        </div>
        <?php if ($this->upload_activated):?>
            <div class="resume file">
                <label for="newmessage-upload"><?php echo $this->t('Attach your resume')?></label>
                <?php echo $this->element->resume ?>
                <span class="hint" id="resume_file_format">.doc, .docx, .pdf, .ods</span>
            </div>            
            <?php $buttom_text= 'Apply Now';?>
        <?php endif;?>                
               
        <div class="checkbox">
            <label class="optional check_news" for="newmessage-newsletter"><?php echo $this->element->newsletter ?> <?php echo $this->t('I would like to receive the AsiaClassified Newsletter')?></label>
        </div>
        <?php $buttom_text= 'Send Message';?>
        <div class="button em">
            <button type="submit" id="newmessage-Send_Message" name="newmessage[Send_Message]"><?php echo $this->t($buttom_text)?></button>
        </div>
        <div class="remark">
            <?php echo $this->t('By clicking Send Message, you agree to AsiaClassified’s <a href="__1__">Terms of Use</a> and <a href="__2__">Privacy Policy', null, '/default/index/term-of-use', '/default/index/privacy')?></a>.
        </div>
    </fieldset>
</form>
